﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bar_edit.aspx.cs" Inherits="Smy.Web.Plugin.Advert.Admin.bar_edit" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>编辑广告内容</title>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/plupload/plupload.full.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../<%=siteConfig.webmanagepath %>/js/uploader.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../<%=siteConfig.webmanagepath %>/js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../<%=siteConfig.webmanagepath %>/js/common.js"></script>
    <link href="../../../<%=siteConfig.webmanagepath %>/skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        //表单验证
        $(function () {
            $("#form1").initValidform();
            $(".upload-img").each(function () {
                $(this).InitUploader({ sendurl: "<%=siteConfig.webpath %>tools/upload_ajax.ashx", swf: "../../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>,<%=siteConfig.videoextension %>" });
            });
        });

        var startDate = function () {
            var txtEndTime = $dp.$('txtEndTime');
            WdatePicker({
                onpicked: function () { txtEndTime.focus(); },
                maxDate: '#F{$dp.$D(\'txtEndTime\')}',
                dateFmt: 'yyyy-MM-dd HH:mm:ss'
            });
        }
        var endDate = function () {
            WdatePicker({
                minDate: '#F{$dp.$D(\'txtStartTime\')}',
                dateFmt: 'yyyy-MM-dd HH:mm:ss'
            })
        }
    </script>
</head>
<body class="mainbody">
    <form id="form1" runat="server">
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../../../<%=siteConfig.webmanagepath %>/center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>插件管理</span>
            <i class="arrow"></i>
            <span>广告管理</span>
            <i class="arrow"></i>
            <span>广告内容</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <div class="content-tab-wrap">
            <div id="floatHead" class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a href="javascript:;" onclick="tabs(this);" class="selected">编辑广告内容</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>所属广告位：</dt>
                <dd>
                    <asp:Literal ID="LitTitle" runat="server"></asp:Literal></dd>
            </dl>
            <dl>
                <dt>活动状态：</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblIsLock" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="0">正常 </asp:ListItem>
                            <asp:ListItem Value="1">暂停 </asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>排 序：</dt>
                <dd>
                    <asp:TextBox ID="txtSortId" runat="server" CssClass="input small ">99</asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl>
                <dt>广告名称：</dt>
                <dd>
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="input normal " datatype="*1-255"></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl>
                <dt>投放时间：</dt>
                <dd>
                    <asp:TextBox ID="txtStartTime" runat="server" CssClass="input date" onfocus="startDate()" datatype="*" errormsg="请选择正确的日期" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl>
                <dt>到期时间：</dt>
                <dd>
                    <asp:TextBox ID="txtEndTime" runat="server" CssClass="input date" onfocus="endDate()" datatype="*" errormsg="请选择正确的日期" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl>
                <dt>链接网址：</dt>
                <dd>
                    <asp:TextBox ID="txtLinkUrl" runat="server" CssClass="input normal " MaxLength="255"></asp:TextBox>
                    <span class="Validform_checktip">*URL地址</span></dd>
            </dl>
            <dl>
                <dt>上传文件：</dt>
                <dd>
                    <asp:TextBox ID="txtFilePath" runat="server" CssClass="input normal upload-path" />
                    <div class="upload-box upload-img"></div>
                </dd>
            </dl>
            <dl>
                <dt>备注(代码)：</dt>
                <dd>
                    <asp:TextBox ID="txtContent" runat="server" MaxLength="255" TextMode="MultiLine" CssClass="input"></asp:TextBox>
                </dd>
            </dl>

        </div>
        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
